<?php defined('SYSPATH') or die('No direct script access.');
                          
class Article_Controller extends Template_Controller 
{
	public $template = 'layout/article';
	
	public function __construct()
	{
		parent::__construct();

		$this->template->menu = '';
		$this->template->content =  '';
	}
	
	public function index($name)
	{
		
	}
		
	public function view($id)
	{
		$view = new View('article/view');
		$view->article = new Article_Model($id);
		$this->template->content =  $view->render();
	}
}